import request from '@/utils/request'

// 查询银行卡列表
export function listUserBack(query) {
  return request({
    url: '/userBack/userBack/list',
    method: 'get',
    params: query
  })
}

// 查询银行卡详细
export function getUserBack(id) {
  return request({
    url: '/userBack/userBack/' + id,
    method: 'get'
  })
}

// 新增银行卡
export function addUserBack(data) {
  return request({
    url: '/userBack/userBack',
    method: 'post',
    data: data
  })
}

// 修改银行卡
export function updateUserBack(data) {
  return request({
    url: '/userBack/userBack',
    method: 'put',
    data: data
  })
}

// 删除银行卡
export function delUserBack(id) {
  return request({
    url: '/userBack/userBack/' + id,
    method: 'delete'
  })
}
